<!DOCTYPE html>
<html lang="zh-cn">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>getData test</title>
  </head>
  <body>
    <div class="container"></div>
  </body>
  <script src="./getDate.js"></script>
  <script>
    "use strict";
    const DOM = document.querySelector(".container");
    const TimeObj = getDate(); // 初始化
    const { standard, format, formatCN, timestamp } = TimeObj;
    DOM.innerHTML = `
      标准时间：${standard} <br/>
      格式时间：${format} <br/>
      格式时间-CN：${formatCN} <br/>
      时间戳：${timestamp} <br/>
    `;
  </script>
</html>
